﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1.DesignerPatter.Observer.Event
{
    public  class ObserverEventPrograme
    {
        public static void Main()
        {
            Secretory sec = new Secretory();
            sec.strState ="老板来了";
            StockObserverEvent so = new StockObserverEvent("李世杰", sec);
            sec.Update += new EventHandler(so.CloseObserver);
            sec.Notyfy();
        }
    }
}
